#include "graphics/opengl/bufferobject.h"

namespace dw {
	namespace graphics {
		namespace details {

/*static*/ const GLenum BufferObject::glUsages[] = {
	GL_STATIC_DRAW,
	GL_DYNAMIC_DRAW,
	GL_STREAM_DRAW,
	GL_ZERO,
	GL_STATIC_READ,
	GL_DYNAMIC_READ,
	GL_STREAM_READ,
	GL_ZERO,
	GL_STATIC_COPY,
	GL_DYNAMIC_COPY,
	GL_STREAM_COPY,
	GL_ZERO
};

/*static*/ const GLenum BufferObject::glTargets[types_count] = {
	GL_ARRAY_BUFFER,
	GL_ELEMENT_ARRAY_BUFFER
};

/*static*/ const GLenum BufferObject::glBindings[types_count] = {
	GL_ARRAY_BUFFER_BINDING,
	GL_ELEMENT_ARRAY_BUFFER_BINDING
};

/*static*/ const GLenum BufferObject::glAccesses[accesses_count] = {
	GL_READ_ONLY,
	GL_WRITE_ONLY,
	GL_READ_WRITE
};

		} // namespace details
	} // namespace graphics
} // namespace dw
